Skip to content

[WIP] feat: allow transform resource before caching in TemporaryResoureCache#3215

Closed
csviri wants to merge 38 commits intooperator-framework:nextfrom
csviri:temp-cache-transformer-function
Closed

[WIP] feat: allow transform resource before caching in TemporaryResoureCache#3215
csviri wants to merge 38 commits intooperator-framework:nextfrom
csviri:temp-cache-transformer-function

Conversation

@csviri
Copy link
Copy Markdown
Collaborator

@csviri csviri commented Mar 10, 2026

Although resources live for a short time in TRC, this might be useful to users that are using a reduced item store, so the resource which are read are also reduced in TRC.

Signed-off-by: Attila Mészáros a_meszaros@apple.com

csviri and others added 30 commits March 6, 2026 18:33
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
Signed-off-by: Steve Hawkins <shawkins@redhat.com>
…work#3027)

Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
…amework#3076)

simplified the javadoc

Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
Signed-off-by: Chris Laprun <metacosm@gmail.com>
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
…3093)

Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
…ork#3106)

- Adds utility that provides methods to update resources using comparable resource versions
- Integrates this utility to the core of the framework (thus simplifying `ReconciliationDispatcher`)
  -  note that this introduces a change in the behavior for the `UpdateControl.patchStatus` (and others), since it won't trigger the reconiliation for the event in that update.
-  Renames former `ReconcilerUtils` to `ReconcilerUtilsInternal`, this is breaking but that utils was never advertised for non-internal usage 
- Includes also fixes for ControllerEventSource event filtering
- Improves TemporaryResourceCache event filtering algorithm

Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
Signed-off-by: Steve Hawkins <shawkins@redhat.com>
Co-authored-by: Steve Hawkins <shawkins@redhat.com>
)

Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
…rator-framework#3137)

This should not be user facing. At least not in any obvious scenerio.

Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
…om Context (operator-framework#3142)

Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
Signed-off-by: Chris Laprun <metacosm@gmail.com>
Co-authored-by: Chris Laprun <metacosm@gmail.com>
…erator-framework#3141)

Signed-off-by: Chris Laprun <metacosm@gmail.com>
Co-authored-by: Attila Mészáros <a_meszaros@apple.com>
…ator-framework#3156)

* refactor: avoid creating intermediate collections when unneeded

Also use constant filters and collectors

Signed-off-by: Chris Laprun <metacosm@gmail.com>

* fix: incorrect test

Signed-off-by: Chris Laprun <metacosm@gmail.com>

---------

Signed-off-by: Chris Laprun <metacosm@gmail.com>
…erator-framework#3161)

* improve: prepare for removal of exitOnStopLeading from public API

Signed-off-by: Chris Laprun <metacosm@gmail.com>

* fix: missed deprecated annotation

[skip ci]

Signed-off-by: Chris Laprun <metacosm@gmail.com>

---------

Signed-off-by: Chris Laprun <metacosm@gmail.com>
[skip ci]

Signed-off-by: Chris Laprun <metacosm@gmail.com>
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
Co-authored-by: Chris Laprun <metacosm@gmail.com>
…framework#3185)

* fix: unify how resource information is added, prevent NPEs

Fixes operator-framework#3183

Some (all?) MDC implementations prevent adding null values so default
should be provided or the key omitted.

Signed-off-by: Chris Laprun <metacosm@gmail.com>

* fix: prefix name

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* fix: cosmetic

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* refactor: remove unused methods

Signed-off-by: Chris Laprun <metacosm@gmail.com>

---------

Signed-off-by: Chris Laprun <metacosm@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…or-framework#3186)

* feat: emit MDCUtils.NO_NAMESPACE value when namespace is null

Fixes operator-framework#3184

Signed-off-by: Chris Laprun <metacosm@gmail.com>

* fix: improve wording

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Signed-off-by: Chris Laprun <metacosm@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ork#3187)

---------

Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
…amework#3191)

Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
csviri and others added 8 commits March 6, 2026 18:33
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
…ingE2E (operator-framework#3210)

Replace one-shot pod lookup with an awaitility-based readiness wait (up to 3 minutes)
to avoid IllegalStateException when pods are not yet scheduled after observability
stack installation.

Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 10, 2026
@csviri csviri changed the title feat: allow transform resource before caching in TemporaryResoureCache [WIP] feat: allow transform resource before caching in TemporaryResoureCache Mar 10, 2026
@csviri csviri requested a review from shawkins March 10, 2026 09:34
@csviri csviri added this to the 5.3 milestone Mar 10, 2026
@csviri csviri self-assigned this Mar 10, 2026
@shawkins
Copy link
Copy Markdown
Collaborator

The general ReducedStateItemStore from the client doesn't store the item as its type - is that a requirement with this logic in the operator sdk?

@csviri csviri modified the milestones: 5.3, 5.4 Mar 11, 2026
@csviri
Copy link
Copy Markdown
Collaborator Author

csviri commented Mar 11, 2026

I just want this to be in parity with TransformingItemStore what we provide from JOSDK. But this is not urgent at all, actually will schedule it just for 5.4

@csviri csviri deleted the branch operator-framework:next March 13, 2026 13:50
@csviri csviri closed this Mar 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants